package cn.tingting;

import cn.tingting.domain.VipUser;
import cn.tingting.service.IVipUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = TestAPP.class)
public class TestMybatis {
    @Autowired
    private IVipUserService  service;

    @Test
    public void APptest(){
        VipUser vipUser = service.selectById(1L);
        System.out.println(vipUser);
    }
    @Test
    public void DEl(){
        boolean b = service.deleteById(9L);
        System.out.println(b);
    }
}
